// DumpTCPPayloadDoc.h : interface of the CDumpTCPPayloadDoc class
//

#include <list>

#pragma once

class MyNetworkAnalyzer;

class CDumpInfo
{
public:	
	ULONG srcIP;
	ULONG dstIP;
	ULONG srcPort;
	ULONG dstPort;
	long dataLengh;
	char data[1];
};

typedef std::list<CDumpInfo*> TDumps;

class CDumpTCPPayloadDoc : public CDocument
{
protected: // create from serialization only
	CDumpTCPPayloadDoc();
	DECLARE_DYNCREATE(CDumpTCPPayloadDoc)
	
	TDumps	m_dumps;
	MyNetworkAnalyzer*	analyzer;
// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~CDumpTCPPayloadDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
};


